include( 'shared.lua' )

local function BuyMenu()
	local BuyBox = vgui.Create( "DFrame" )
	BuyBox:SetPos( 50,50 )
	BuyBox:SetSize( 1000, 900 )
	BuyBox:SetTitle( "Testing Derma Stuff" )
	BuyBox:SetVisible( true )
	BuyBox:SetDraggable( true )
	BuyBox:ShowCloseButton( true )
	BuyBox:MakePopup()

	//Create the buttons for the items
	local AR2 = vgui.Create( "DButton" )
	AR2:SetParent( BuyBox ) // Set parent to our "DermaPanel"
	AR2:SetText( "Kill yourself" )
	AR2:SetPos( 25, 50 )
	AR2:SetSize( 150, 50 )
	AR2.DoClick = function()
		local cost = 750
		LocalPlayer():Give("weapon_ar2")
		BuyBox:SetVisible(false)
		LocalPlayer():SetNWInt("NPCKillScore", (LocalPlayer:GetNWInt("NPCKillScore") - cost))
	end
end
	

	